package com.online.olsrootserver.service.impl;

import com.online.olsrootserver.master.CompanyMapper;
import com.online.olsrootserver.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by littleheng on 2018/5/8
 */
@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    private CompanyMapper companyMapper;

    @Override
    public String getIdByWxNumber(String wxNumber) {
        String companyId = "";
        if ("".equals(wxNumber)) {
            return companyId;
        }
        companyId = this.companyMapper.getIdByWxNumber(wxNumber);
        return companyId;
    }
}